<?php

class Zend_View_Helper_Comment
{
    public $view;

    public function comment ($comment)
    {
        $html = ' <div class="post">
                      <div class="metadata">
                            Написал : <a href="#">&nbsp;<strong>' . $comment->username . '&nbsp;</strong></a>
                            ' . $comment->date . '
                            <a href="/comment/delete/id/' . $comment->id . '">&nbsp;Удалить</a>
                            
                            <div class="clearer"></div> 
                        </div>
                        <div class="date">' . $comment->date . '</div>
                        <div class="body">
                           ' . $comment->message . '
                        </div>

                    </div>';
        return $html;
    }

    public function setView (Zend_View_Interface $view)
    {
        $this->view = $view;
    }
}

